import request from '@/utils/request'

// 查询教学计划上课内容子列表
export function listTeachContent(query) {
  return request({
    url: '/edu/teachContent/list',
    method: 'get',
    params: query
  })
}

export function listTeachContentByPlanId(teachPlanId) {
  return request({
    url: '/edu/teachContent/list/' + teachPlanId,
    method: 'get'
  })
}

// 查询教学计划上课内容子详细
export function getTeachContent(contentId) {
  return request({
    url: '/edu/teachContent/' + contentId,
    method: 'get'
  })
}

// 新增教学计划上课内容子
export function addTeachContent(data) {
  return request({
    url: '/edu/teachContent',
    method: 'post',
    data: data
  })
}

// 修改教学计划上课内容子
export function updateTeachContent(data) {
  return request({
    url: '/edu/teachContent',
    method: 'put',
    data: data
  })
}

// 删除教学计划上课内容子
export function delTeachContent(contentId) {
  return request({
    url: '/edu/teachContent/' + contentId,
    method: 'delete'
  })
}

// 导出教学计划上课内容子
export function exportTeachContent(query) {
  return request({
    url: '/edu/teachContent/export',
    method: 'get',
    params: query
  })
}